<template>
  <div>
    demo
    <RouterLink to="/fiveth/demo/123">123==></RouterLink>
    <RouterLink to="/fiveth/demo/456">456==></RouterLink>
    <RouterLink to="/fiveth/demo/678">678==></RouterLink>
  </div>
</template>
<script setup>
import { onBeforeRouteUpdate, useRoute } from 'vue-router';
const route = useRoute()
console.log('route.query==>',route.query);

onBeforeRouteUpdate((to,from)=>{
  console.log("Update to==>",to);
  console.log("Update from==>",from);
})
</script>
<style scoped>
</style>